home *** CD-ROM | disk | FTP | other *** search
/ Turnbull China Bikeride / Turnbull China Bikeride - Disc 2.iso / ACORNUSERS / CBSA / DISCUTIL / RECURSE.ZIP / !Recurse / !Help < prev    next >
Text File  |  1998-04-05  |  13KB  |  333 lines

  1. If you are reading this help file in StrongED, you can use the ListOfFound
  2. function with the "]" character to produce a clickable index to all the
  3. headings in this file. Zap has a similar function, but I don't know the name.
  4.  
  5. ]!Recurse v0.04
  6. ~~~~~~~~~~~~~~~
  7.  
  8. This is a utility which enables you to perform a specified action on a set
  9. of files within a directory structure. You can, for example, load all HTML
  10. files within a directory structure, or produce a text file of all jpeg files in
  11. a browsers cache directory. Default options can be set, and it supports
  12. a quiet mode to allow it to be run easily in boot sequences or from task alarms
  13. as well as as a desktop utility.
  14.  
  15.  
  16. ]Requirements:
  17. ~~~~~~~~~~~~~~
  18.  
  19. Any Acorn machine running RiscOS 3.1 or greater, with at least 256Kb free
  20. memory.
  21.  
  22. This application was written using WimpBasic by Clares, and so requires access
  23. to !WBModules. This should be available for download from my website, as well
  24. as from Clares, or from the WimpBasic support site. Just make sure that it has
  25. been seen by the filer (on a RiscPC, just lob it into your Boot.Tasks
  26. directory) and all should be well.
  27.  
  28. This program will create an index of known filetypes when it is first run. For
  29. this reason I don't recommend running it from within an archive (and it won't
  30. actually start from within an read-only archive). Decompress it before use.
  31. Building the filetype list also requires access to !Scrap.
  32.  
  33.  
  34. ]Upgrading from an earlier version:
  35. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  36.  
  37. Copy the !Recurse application over the top of the earlier version. No option
  38. settings will be changed by this, but you may want to check the options
  39. window, and save the settings again (the format of the options file has
  40. changed a bit). The Sprites file (not !Sprites) inside the !Recurse directory
  41. is no longer required in v0.04, and can be deleted.
  42.  
  43.  
  44. ]Usage:
  45. ~~~~~~~
  46.  
  47. Run it, drag the directory you want to scan onto either the icon bar icon or
  48. the window that opens, and select action from the menu. If you want to
  49. restrict the scan so that it doesn't scan every file, then toggle the window
  50. to full size, and select the appropriate options. Once ready to go, click on
  51. "Start". The directory will be scanned, the action applied to matching files,
  52. and at the end a little window will pop up telling you how many files were
  53. matched, how many skipped, and other info. This window will close
  54. automatically after 20 seconds, but can be closed manually.
  55.  
  56. The actions you can choose from are:
  57.  
  58.  Run    - Equivalent to double clicking on the file.
  59.  Load   - Equivalent to shift+double clicking on the file.
  60.  Delete - Fairly obviously, this deletes the file.
  61.  List   - This generates a text file of matching filenames.
  62.  Move   - This moves the files to a specified directory.
  63.  
  64. Some notes on each action:
  65.  
  66. ]Run:
  67. ~~~~~
  68. If you have chosen to run the files, you should be sure that the application
  69. which handles that filetype can cope with multiple files - ChangeFSI for
  70. example is a "one file at a time" application, and if sent a number of
  71. files to process, will end up just processing the last one. There are
  72. utilities such as BatchFSI and FSI_Batch which deal with this.Also, check that
  73. the application doesn't load another copy of itself each time its files are
  74. run - you can quickly use lots of memory this way.
  75.  
  76.  
  77. ]Load:
  78. ~~~~~~
  79. The files are loaded as if they were text files - into your current editor.
  80. You should be sure that the current editor can deal with the filetype you are
  81. sending to it, and if loading binaries, you should be aware of the memory
  82. requirements of loading a lot of them simultaneously.
  83.  
  84.  
  85. ]Delete:
  86. ~~~~~~~~
  87. If you have the !Blackhole recycle bin loaded, then the files will be copied
  88. there before deletion (See Options section to turn this off if required).
  89.  
  90. If you do not have !Blackhole running, or have disabled the option to use it,
  91. you will be warned that the files are about to be deleted, and given a chance
  92. to stop the process.
  93.  
  94.  
  95. ]List:
  96. ~~~~~~
  97. A save box will pop up allowing you to specify where to save the listing. The
  98. process will start when you click Ok on the save box. The list file also
  99. contains the information displayed on the results window, as well other
  100. settings that were used.
  101.  
  102.  
  103. ]Move:
  104. ~~~~~~
  105. A save box will pop up allowing you to specify a directory to move the files
  106. to. As with the list action, it will start when you click Ok on the save box.
  107.  
  108.  
  109. ]Restrictions on the scan:
  110. ~~~~~~~~~~~~~~~~~~~~~~~~~~
  111.  
  112. If you expand the main window to full size, you will see three rows of
  113. options. By default these are all greyed out, which means that the scan
  114. will match all files. The options are:
  115.  
  116.  Filetype 
  117.  Size     
  118.  Wildcard
  119.  
  120. The filetype option allows you to limit the search to any files matching a
  121. specified type. It can also be set to match all files except a specified type.
  122.  
  123. The size option allows you to limit the search to any files larger or smaller
  124. than a specified value. The value can be in bytes, Kilobytes, or Megabytes.
  125. (Files exactly matching the value count as being larger, so strictly speaking
  126. the options should be "Smaller" or "Equal to or Larger", but that would make
  127. the window look untidy). A Kilobyte is taken as being 1024 bytes, and a
  128. Megabyte is taken as being 1024 Kilobytes. 
  129.  
  130. The wildcard option allows you to specify a standard RiscOS wildcard to match
  131. the files against.
  132.  
  133. These options can be used together in any combination - some may be more useful
  134. than others . . .
  135.  
  136.  
  137. ]The Filetype menu:
  138. ~~~~~~~~~~~~~~~~~~~
  139.  
  140. Because I've got no way of knowing what filetypes your machine knows about, the
  141. first time !Recurse is run, it has a look at your machine, and generates a
  142. list of known filetypes. This is kept in a text file called "Types" inside
  143. the !Recurse directory. When it is run again, it just reads this file to
  144. produce the filetype menu. On many machines, you may have far more types
  145. registered than you want to appear on the menu, so you can edit this file
  146. to reduce the number of items that appear on the list, or to give them more
  147. descriptive names. Any line starting with a "#" character is a comment and is
  148. ignored by the program. The format of the file is:
  149.  
  150. filetype : name of filetype
  151.  
  152. e.g
  153. FFF : Text
  154. FFE : Command
  155. FFD : Data
  156. etc
  157.  
  158. Blank lines, and lines that do not conform to the above format are ignored. The
  159. key bit of information is the filetype number (in hex). The filetype name is
  160. just the text that appears on the menu, and can be whatever you want that
  161. filetype to be called. You can also alter the order of the items in this file
  162. to put the filetype menu into whatever order you want.
  163.  
  164. In case you're interested, I taken a 'known' filetype to be one for which the
  165. system variable file$type_xxx is set (xxx being the filetype in hex).
  166.  
  167. !Recurse is limited internally to a maximum of 256 filetypes in this list, but
  168. Wimpbasic doesn't like creating menu's longer than 64 items long. For this
  169. reason, I would recommend trimming the types file to 64 items or less . . .
  170.  
  171.  
  172. ]Options:
  173. ~~~~~~~~~
  174.  
  175. The options screen can be opened either from the program's menu, or by
  176. adjust clicking on the icon bar icon. You can set:
  177.  
  178. The default settings for the main screen:
  179.  The program will start with these options the next time it is run.
  180.  
  181. Imagefiles:
  182.  If this is ticked, the program will treat imagefiles (ArcFS, Zip, X-Files etc)
  183.  as if they were directories. If unticked, they are treated as files.
  184.  
  185. Use BlackHole:
  186.  If ticked, and !Blackhole is running, then deletions will copy to the
  187.  Blackhole bin directory before deleting. This has only been tested with
  188.  BlackholeII v4.04, but should work with earlier versions.
  189.  
  190. Quiet Mode:
  191.  If ticked, it enables Quiet Mode. See later.
  192.  
  193. Recurse Depth:
  194.  This enables you to limit how far down a directory structure you want to go.
  195.  Setting it to 0 will recurse unlimited directories.
  196.  Setting it to 1 will only scan files in the directory that you dragged
  197.  to the window/icon bar.
  198.  Setting it to 2 will scan the directory, and sub-directories, but not
  199.  sub-sub-directories.
  200.  etc etc.
  201.  
  202. Rebuild Types:
  203.  When clicked, Recurse will rescan your machine for known filetypes, and will
  204.  rebuild the filetype menu. (i.e. you don't have to restart).
  205.  For those who want to know, a "Known" filetype is one for which the system
  206.  variable file$type_xxx has been set.
  207.  
  208. Quiet Mode:
  209.  (Greyed out unless the Quiet Mode option is ticked)
  210.  The default directory, listfile, and moveto directory can be specified here.
  211.  
  212. Choosing OK from the options screen sets the options for the currently
  213. running program. Save saves them for the next time it is run, and Default
  214. sets all options back to their default value. A backup of the options file is
  215. kept with the name 'oldopts'.
  216.  
  217.  
  218. ]Quiet Mode:
  219. ~~~~~~~~~~~~
  220.  
  221. This is a completely silent mode that allows Recurse to be run during a boot
  222. sequence or from a task alarm (from Alarm or Organiser). If the quiet mode
  223. option is ticked, then when run it will apply the default action, filetype,
  224. recursedepth etc to the directory specified in the options - Quiet Mode
  225. section. If the default action is List, then the default list file is used
  226. for output, likewise for the "move" action, the default move directory is used.
  227. Recurse then shuts down.
  228.  
  229. In this version there is no way to disable Quiet Mode, other than manually
  230. editting the Options file inside the Recurse application, and setting
  231. quiet=False. This will be fixed in a later version.
  232.  
  233. The results window isn't displayed in quiet mode, and any warning messages
  234. won't appear.
  235.  
  236.  
  237. ]Error Messages:
  238. ~~~~~~~~~~~~~~~~
  239.  
  240. None really, apart from the warning message before deletions take place. It
  241. does check that !Scrap has been seen by the filer before starting though. If
  242. it hasn't, it will warn you of this, and try to use a tmp directory inside its
  243. own application directory. This may be important if including it in a boot
  244. sequence, especially on pre RiscPC machines without the new Acorn boot
  245. structure.
  246.  
  247.  
  248. ]Known Bugs:
  249. ~~~~~~~~~~~~
  250.  
  251. Fixed bugs: 8->
  252. Version 0.02 had a bug when dealing with directory structures with more than
  253. 900 or so files in it. I think this is fixed (0.04 works with a test directory
  254. structure of over 9000 files), but if you find problems with large structures,
  255. get in touch by email.
  256.  
  257. One point to be aware of is that if you have it set to treat imagefiles as
  258. directories (which it is by default), then the "Files Total" value may be
  259. larger than the number of files reported by the filer's "count" option. The
  260. filer (and !RealCount, if you are using it) treat imagefiles as files when
  261. counting.
  262.  
  263. If you think you've found a bug in some other part of Recurse, send me an email
  264. with the details.
  265.  
  266. This app has been tested on a RiscPC SA running RiscOS 3.70, and an a3010
  267. running RiscOS 3.10.
  268.  
  269.  
  270. ]Future Improvements:
  271. ~~~~~~~~~~~~~~~~~~~~~
  272.  
  273. Check for hotkey on startup, and open options window if pressed:
  274.  This is to allow you to turn off Quiet Mode without manually editing
  275.  the options file.
  276.  
  277. Support for other Recycle bin programs:
  278.  If anyone would like to suggest such programs, and how to detect that they
  279.  are running, email me . . .
  280.  
  281. Proper multitasking, with a progress window. This would be especially useful
  282.  when scanning slow filesystems, such as CD's.
  283.  
  284. Launch mailto and http from info window.
  285.  
  286. Option to retain dir structure on blackhole delete / move.
  287.  Currently, files moved by Recurse are just moved into Blackhole, or the
  288.  specified directory without their path relative to the recursed directory
  289.  being preserved. If you have the same file name in two places in the
  290.  structure, they would overwrite each other in the destination directory.
  291.  You could also hit the limit on the number of files in a directory unless
  292.  you have taken some action to prevent this (e.g. destination directory is an
  293.  x-file.)
  294.  
  295.  
  296. ]Boring License bits:
  297. ~~~~~~~~~~~~~~~~~~~~
  298.  
  299. This application is Freeware. This means that you can copy it, distribute it as
  300. much as you like with the following restrictions:
  301.  
  302.  - Only the complete application is distributed. Portions of this application
  303.    may not be distributed either separately, or as part of another product.
  304.  - It should not be distributed with an options file or a types file - it is
  305.    designed to generate the types file for each machine it runs on.
  306.  - No charge other than media and postage costs is made for this application.
  307.  
  308. I'd appreciate an email before you put it on a CD, cover disc, or the like, but
  309. that's more a matter of courtesy, and of checking that you've got the latest
  310. version . . .
  311.  
  312.  
  313. ]Web Resources:
  314. ~~~~~~~~~~~~~~~
  315.  
  316. The latest version of Recurse, together with anything else I may have
  317. written in the meantime should be available from either:
  318.  
  319. http://www.pcweb.liv.ac.uk/mikejs/acorn.html
  320. http://www.mike100.demon.co.uk/acorn.html
  321.  
  322. More information on WimpBasic, together with the latest version of !WBmodules,
  323. (1.12 at time of writing this) is available at:
  324.  
  325. http://www.stcoll.ac.uk/clares
  326. http://www.treknet.is/wb
  327.  
  328. --
  329. 5.4.98
  330. Mike Sandells
  331. mailto:mike@mike100.demon.co.uk
  332. http://www.pcweb.liv.ac.uk/mikejs 
  333.